#ifndef BUYER_H
#define BUYER_H
#include<QString>

class buyer
{
public:
    buyer();
    void getinformation(QString n,QString i,QString s,QString e,int p);
    QString getname();
    QString getidentify();
    QString getstart();
    QString getend();
    int getprise();
    bool gettorf();
    void setfalse();
    void settrue();
    void delete_information();
private:
    QString name,identfy,start,end;
    int prise;   //票价，为sum（distance）*1.5
    bool torf;   //判断是否买票，买票记为true，否则为false1

};

#endif // BUYER_H
